﻿@{
    ViewBag.Title = "" + FOResource.UI.CpanelLayout.upload + "";
    Layout = "~/Views/Shared/_CpanelLayout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {

        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader'),
            multiple: false,
            acceptFiles: "image/*",
            action: '@Url.Action("Upload", "UpLoad")',
            onComplete: function (id, fileName, responseJSON) {
                $("#Image").attr("value", fileName);
                $("#sphinherror").text("");
            }
        });
    });

</script>
<div class="cbread_crumb">
    <ul>
        <li><a href="/Cpanel">Control panel</a></li>

        <li class="lastli"><a href="/UpLoad">Tải lên</a></li>
    </ul>
</div>
<div class="content-module-heading cf">

    <h3 class="fl">Tải lên</h3>

</div>
<!-- end content-module-heading -->


<div class="innerLR">


    <p style="float: left; width: 30%;">
        @Html.Label("Hình ảnh")
        <input id="Image" class="round default-width-input" readonly="readonly" type="text" />

    </p>
     <div class="clr"></div>
    <div id="file-uploader">
        <noscript>          
                                    <p>Please enable JavaScript to use file uploader.</p>
                                    <!-- or put a simple form for upload here -->
                                </noscript>
    </div>
</div>
